import React from 'react'

function Com (props) {
  const style = {
    position: 'absolute',
    background: 'red',
    width: '0.43rem',
    height: '0.43rem',
    borderRadius: '50%',
    textAlign: 'center',
    lineHeight: '0.43rem',
    color: "#fff",
    zIndex:3,
    fontWeight: 100,
    fontSize: '0.32rem',
    ...props.position 
  }
  // console.log(props)
  // content 是父组件传过来的
  return (
  <span style={ style }>{ props.content }</span>
  )
}

export default Com